<!DOCTYPE html>
<html>

<head>
    <include file="Share:meta" />
</head>

<style type="text/css">
a.current { color:#f00 !important; font-weight:bolder; }
a.lianjie { color:#333; }
tr th { text-align:center; }
tr td { line-height:47px; font-size:12px; text-align:center; }
</style>

<script>
function delcheck() {
	var msg = "您真的确定要删除吗？";
	if(confirm(msg)==true){
		return true;
	}else{
		return false;
	}
}
</script>

<body class="hold-transition skin-blue sidebar-mini">
    <div class="wrapper">
        <include file="Share:header" />
        <include file="Share:left" />
        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper">
            <!-- Main content -->
            <section class="content">
                <div class="box">
                    <div class="box-header with-border">
                        <h3 class="box-title">订单列表</h3>
                        <h4 class="box-title" id="notice" style="margin-left:50px; color:#f00; display:none;"></h4>
                    </div>
                    <!-- /.box-header -->
                    <div class="box-body">
                        <table class="table table-bordered HjTable" border="1">
                            <tbody>
                                <tr>
                                    <th style="width:40px">ID</th>
                                    <th style="width:210px">顾客</th>
                                    <th style="text-align:left;">项目名称</th>
                                    <th style="width:50px">图片</th>
                                    <th style="width:50px">星级</th>
                                    <th style="width:60px">价格</th>
                                    <th style="width:85px">下单时间</th>
                                    <th style="width:50px">状态</th>
                                    <th style="width:85px">付款时间</th>
                                    <th style="width:50px">操作</th>
                                </tr>
                                <volist name="result" id="vo">
                                <tr>
                                    <td>{$vo.id}</td>
                                    <td>{$vo.openid}</td>
                                    <td style="text-align:left;"><a target="_blank" class="lianjie" href="__APP__/account/project/pid/{$vo.project_id}">{$vo.name}</a></td>
                                    <td><notempty name="vo.cover"><a target="_blank" href="{$vo.new_cover}"><img height="30" src="{$vo.new_cover}"/></a></notempty></td>
                                    <td><span class="badge bg-red">{$vo.star}</span></td>
                                    <td><span class="badge bg-blue">{$vo.project_price}</span></td>
                                    <td>{$vo.ctime}</td>
                                    <td>
                                    	<eq name="vo.status" value="0">
                                    	<span class="badge bg-gray">已取消</span>
                                        </eq>
                                        
                                        <eq name="vo.status" value="1">
                                    	<span class="badge bg-red">未付款</span>
                                        </eq>
                                        
                                        <eq name="vo.status" value="2">
                                    	<span class="badge bg-green">已付款</span>
                                        </eq>
                                        
                                        <eq name="vo.status" value="3">
                                    	<span class="badge bg-yellow">已完成</span>
                                        </eq>
									</td>
                                    <td>
                                    	<notempty name="vo.pay_time">
                                    	<neq name="vo.pay_time" value="0000-00-00 00:00:00">
                                    	{$vo.pay_time}
                                        <else/>
                                        -
                                        </neq>
                                        </notempty>
                                    </td>
                                    <td><a class="lianjie" href="__APP__/console/reservation_edit/id/{$vo.id}/p/{$Think.get.p|default=1}">编辑</a></td>
                                </tr>
                                </volist>
                            </tbody>
                        </table>
                    </div>
                    <!-- /.box-body -->
                    <div class="box-footer clearfix">
                        <ul class="pagination pagination-sm no-margin pull-right">
                        	{$page}
                        </ul>
                    </div>
                </div>

                
            </section>
            <!-- /.content -->
        </div>
        <!-- /.content-wrapper -->
        <include file="Share:copyright" />
        <include file="Share:setting" />
    </div>
    <include file="Share:js" />
</body>

</html>
